//
//  AuthorManager.h
//  ZYYD
//
//  Created by yuzhou on 12-8-7.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AuthorManager : NSObject
{
    BOOL loggedIn;
    NSString *userID;
    NSString *tempUserName;
    NSString *tempPassword;
}
@property (nonatomic,retain) NSDictionary *userInfo;
@property (nonatomic,retain) NSString *userID;
@property (nonatomic,retain) NSString *tempUserName;
@property (nonatomic,retain) NSString *tempPassword;
@property (nonatomic,retain) NSString *tempEmail;

+ (id)defaultManager;
- (NSString *)userID;
- (NSString *)username;
- (BOOL)hasUserPaid;
- (NSString *)email;
- (NSString *)sessionID;
- (void)loginWithUsername:(NSString *)username password:(NSString *)password;
- (BOOL)hasLoggedIn;
- (BOOL)hasLoggedInRequired:(BOOL)required;
- (void)registerWithUsername:(NSString *)username password:(NSString *)password email:(NSString *)email;
- (void)logOut;
- (void)loginResult:(NSNotification *)notification;
@end
